<?php

namespace App\Http\Requests\WebPage\FeedBack;

use App\Exceptions\WeChatRequestException;
use App\Http\Requests\WebPage\WebPageApiRequest;
use Illuminate\Contracts\Validation\Validator;
use Illuminate\Foundation\Http\FormRequest;

class FeedBackRequest extends WebPageApiRequest
{
    /**
     * Determine if the user is authorized to make this request.
     *
     * @return bool
     */
    public function authorize()
    {
        return true;
    }

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            'company'     => 'required',
            'contact_people' => 'required',
            'address'      => 'required',
            'phone' => 'required',
            'intent_city' => 'required',
            'email' => 'required|email',
            'contents' => 'required',
        ];
    }
}
